#pragma once
#include <string>
#include "afxwin.h"
#include "afxcmn.h"

using std::string;

/*
Convert .mxf file to avi file.
can change start frame, end frame, frame resoltuion,
menu positon: Video -> Convert
@todo, add process bar when change.
*/

class CVideoConvert : public CDialog
{
	DECLARE_DYNAMIC(CVideoConvert)

public:
	CVideoConvert(CWnd* pParent = NULL);   // standard constructor	
	virtual ~CVideoConvert();
	
	//added
	void SetConvert(const string &leftFile, const string &rightFile, const SIZE &leftRes, const SIZE &rightRes);

	string m_leftFileName;
	string m_rightFileName;
	SIZE   m_leftSize;
	SIZE   m_rightSize;

// Dialog Data
	enum { IDD = IDD_VIDEO_CONVERT };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnEnChangeLeftResolution();

	CEdit m_leftRes;
	CEdit m_rightRes;
	virtual BOOL OnInitDialog();
	CIPAddressCtrl m_leftStartTime;
	afx_msg void OnBnClickedVideoConvertStart();
	CIPAddressCtrl m_leftEndTime;
	CIPAddressCtrl m_rightStartTime;
	CIPAddressCtrl m_rightEndTime;
	int m_convertWidth;
	int m_convertHeight;
	CIPAddressCtrl m_convertStartTime;
	CIPAddressCtrl m_convertEndTime;
protected:
	// just convert left without drop frames
	CButton m_justLeftTotal;
	// just convet right video without droping frames
	CButton m_justRightTotal;
public:
	afx_msg void OnBnClickedLoadTimeCode();
};
